package com.chance.cc.crawler.development.command.script.acfun;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/3/17 15:18
 * @Description
 *      acfun
 **/
public class AcfunCrawlerScript {

    private static String domainId = "acfun";

    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.215",9599);

    public static void publishCrawlerNodeScript(){

        HttpPage page = scriptCommand.publishCrawlerScript2Consul(domainId);
        System.out.println("发布采集脚本：" + page.getRawText());
    }

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }
}
